package com.ljf.daily.makemoneysoftware.dto.command;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.validation.AddGroup;
import com.ljf.common.validation.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 赚钱软件定义--新增修改  daily_dat_make_money_software
 *
 * @author LJF
 * @since 2024-01-30
 */
@Data
@ApiModel("赚钱软件定义--新增修改")
public class DailyDatMakeMoneySoftwareCommand implements Serializable {

    @JsonProperty("id")
    @ApiModelProperty(value = "ID")
    @NotNull(message = "ID不能为空", groups = UpdateGroup.class)
    private Long id;

    @JsonProperty("name")
    @ApiModelProperty(value = "名称")
    @Length(message = "名称长度不能超过20个字符", max = 20)
    @NotEmpty(message = "名称不能为空", groups = AddGroup.class)
    private String name;

    @JsonProperty("accountCode")
    @ApiModelProperty(value = "提现账户编码")
    @Length(message = "提现账户编码长度不能超过6个字符", max = 6)
    @NotNull(message = "提现账户编码不能为空", groups = AddGroup.class)
    private String accountCode;

    @JsonProperty("registerPhone")
    @ApiModelProperty(value = "注册手机")
    @Length(message = "注册手机长度不能超过11个字符", max = 11)
    @NotNull(message = "注册手机不能为空", groups = AddGroup.class)
    private String registerPhone;

}
